import java.io.IOException;

import com.somobile.beans.Question;
import com.somobile.json.JSONHelper;
import com.somobile.results.beans.QuestionResults;

/**
 * 
 */

/**
 * @author Jatan
 *
 */
public class TestMain
{

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException
	{
		QuestionResults questions = (QuestionResults) JSONHelper.readObject("http://api.stackoverflow.com/0.7/questions?key=0xDEADBEEF", QuestionResults.class);
		
		
		for(Question q : questions.getQuestions())
		{
			System.out.print(q.getTitle()+"{");
			
			for(String tag : q.getTags())
			{
				System.out.print(tag+" ");
			}
			System.out.println("}");
		}

	}

}
